package com.wing.productionPlan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.productionPlan.model.entity.AuditRecord;
import com.wing.productionPlan.model.entity.DemandPlan;
import com.wing.productionPlan.model.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 需求计划表-Dao
 *
 * @author
 */
@Mapper
public interface DemandPlanDao extends BaseMapper<DemandPlan> {

    /**
     * 查询列表
     * @param pg
     * @param map
     * @return
     */
    List<DemandPlanVO> pageList4app(@Param("page") Page<DemandPlanVO> pg, @Param("map") Map map);

    DemandPlanVO get4appById(Long id);

    /**
     * 查询客户对应的产品信息
     * @return
     */
    List<CustomerCataLogVo> getCustomerInfoAndSkuInfo();

    /**
     * 需求计划汇总
     * @param pg
     * @param map
     * @return
     */
    List<DemandPlanCollectionVO> pageListCollection4app(@Param("page")Page<DemandPlanCollectionVO> pg,@Param("map") Map map);
}
